package com.spring.app.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.spring.app.domain.ItemData;
@EnableJpaRepositories("com.spring.app.dao")
public interface ItemRepository extends org.springframework.data.jpa.repository.JpaRepository<ItemData, Long>  {
	
	List<ItemData>  findAll();
	

	  @Query("select i from ItemData i where i.itemname like %?1%")
	  List<ItemData> findByItems(String itemName);
	
	

}
